<% for i in comments %>
<div id="comments_div_<%= i.id %>" class="comment_div" 
	rif="<%= i.id %>" style="border-left:6px solid #<%= i.user.colors %>;">
	<div class="comment_img">		
		<%= image_tag(i.user.get_avatar(:thumb),:style => "display:block") %>
		<div id="comment_vote_<%= i.id %>" class="comment_vote_div" <%="style='background-color:red'" if i.vote < 0 %>>
			<%= i.vote > 0 ? "+#{i.vote}" : i.vote %>
		</div>
	</div>
	<div class="comment_content_div">
		<div class="comment_user_name" style="color:#<%= i.user.colors %>"><%= i.user.name %></div>
		<div class="right">
			<a href="#" onclick="return voteComment(this,'no')">-</a>
			<a href="#" onclick="return voteComment(this,'yes')">+</a>
		</div>
		<div class="separator"><span></span></div>		
		<p class="comment_message"><%= i.message %></p>
		<div class="comment_who">			
			<p class="comment_date" title="<%= i.created_at.to_s %>"><%= time_ago_in_words(i.created_at) %> <%=t "ago" %></p>			
						
		</div>
		<div class="separator"><span></span></div>								
	</div>			
	<div class="separator"><span></span></div>			
</div>
<% end %>